/**
 * 请求统一管理
 */
import Request from '@/utils/request';
/* 获取oss授权信息 */
export const fetchOSS = (data, type) =>
  Request.get(`/bnd-video/fileHandler/info/${type || 'video'}`, data);

/* 上传阿里OSS */
export const uploadOSS = (data, url) => Request.file(url, data);

/* 根据业务线查询分组 */
export const getBussinessLineGroup = data =>
  Request.get(`/bnd-video/videoGroup/getBussinessLineGroup/${data}`);

export const addVideoMessage = data =>
  Request.post(`/bnd-video/videoBusinessInfo/addVideoMessage`, data);

export const updateVideoMessage = data =>
  Request.post(`/bnd-video/videoBusinessInfo/updateVideoMessage`, data);
/* 查询视频信息*/
export const getVideoMessage = data =>
  Request.get(`/bnd-video/videoBusinessInfo/getVideoMessage/${data}`);

// 视频审核
export const toAudit = data => Request.post(`/bnd-video/videoAudit/toAudit`, data);
